package acm.pta2;

import java.util.Scanner;

public class T2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] time = scanner.nextLine().split(":");
        int hh = Integer.parseInt(time[0]);
        int mm = Integer.parseInt(time[1]);
        if (hh < 12 || (hh == 12 && mm == 0)) {
            System.out.println("Only " + hh + ":" + mm + ".  Too early to Dang.");
        } else {
            if (hh >= 12) {
                hh -= 12;
            }
            if (mm > 0) {
                hh++;
            }
            for (int i = 0; i < hh; i++) {
                System.out.print("Dang");
            }
            System.out.println();
        }
    }
}
